package com.example.tijianserver.mapper;

import com.example.tijianserver.pojo.Cidetailedreport;
import com.example.tijianserver.pojo.Cireport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CidetailedreportMapper {
    int deleteByPrimaryKey(Integer cidrId);

    int insert(Cidetailedreport record);

    int insertSelective(Cidetailedreport record);

    Cidetailedreport selectByPrimaryKey(Integer cidrId);

    int updateByPrimaryKeySelective(Cidetailedreport record);

    int updateByPrimaryKey(Cidetailedreport record);

    @Select("select * from cidetailedreport where ciId=#{ciId} AND orderId=#{orderId}")
    public List<Cidetailedreport> getReportDetailByciId(Integer ciId, Integer orderId);

    @Select("select * from cidetailedreport where orderId=#{orderId}")
    public List<Cireport> selectByOrderId(Integer orderId);
}